package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.SysUser;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.SysUserVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author duanhm
 * @since 2019-07-22
 */
public interface SysUserService extends IService<SysUser> {

    SysUserVo login(String username, String password) ;

    List<SysUserVo> findUserList(Page<SysUserVo> page,SysUserVo searchData);

    ResultUtil<T> saveUser(SysUserVo data, String upfolder, String accessPath);

    ResultUtil<T> updateDelete(String ids);

    boolean checkUserByField(String field, SysUserVo data);

    ResultUtil<T> updateUser(SysUserVo data, String upfolder, String accessPath);

    ResultUtil<T> changeUserPassword(SysUserVo data);

    List<Long> getUserList(Long userId);

    boolean unlockRet(SysUserVo vo);
}
